package cz.kfad.ofrss.util;

import cz.kfad.ofrss.model.Category;
import cz.kfad.ofrss.model.Channel;

public class LabelUtil {

    public static CharSequence toText(Channel channel) {
        return channel.getName() + " (" + channel.getUnreadFeeds() + "/" + channel.getTotalFeeds() + ")";
    }

    public static CharSequence toText(Category category) {
        return category.getName() + " (" + category.getUnreadFeeds() + "/" + category.getTotalFeeds() + ")";
    }
}
